import './assets/main.css'
import 'element-plus/dist/index.css'
import { createApp } from 'vue'
import App from './App.vue'
import * as ElementPlusIconsVue from '../../../node_modules/@element-plus/icons-vue'
import router from './router'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
import { ElMessage } from 'element-plus'
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(router)
app.use(ElMessage)
app.use(createPinia().use(persist))
import zhCn from 'element-plus/es/locale/lang/zh-cn'



for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
